<table>
    <tr>
        <td>No.</td>
        <td>Distributor Id</td>
        <td>Distributor Code</td>
        <td>Full Name</td>
        <td>Email</td>
        <td>Contact</td>
        <td>Group Sales</td>
        <td>DRB Sales</td>
        <td>Total</td>
    </tr>

    <?php
    $idx = 1;
    foreach ($resultArray as $resultObj) {
    ?>
    <tr>
        <td><?php echo $idx++ ?></td>
        <td><?php echo $resultObj["dist_id"]?></td>
        <td><?php echo $resultObj["dist_code"]?></td>
        <td><?php echo $resultObj["full_name"]?></td>
        <td><?php echo $resultObj["email"]?></td>
        <td><?php echo $resultObj["contact"]?></td>
        <td><?php echo $resultObj["total_sales"]?></td>
        <td><?php echo $resultObj["dsSales"]?></td>
        <td><?php echo $resultObj["resultSales"]?></td>
    </tr>
    <?php
    }
    ?>
</table>